    <form role="form" action="" method="post" enctype="" class="form-horizontal pull-left">
        <div class="form-group">
            <label class="control-label">时间：</label>
            <div>
                <input id='f_date' class="Wdate time" type="text" name="annual_produce_time" value="" onfocus="WdatePicker({dateFmt:'yyyy-MM'})" datatype="n">
            </div>
        </div>
        <div class="form-group filter-btn">
          <a href='javascript:filterDate();' class="btn btn-green">筛选</a>
        </div>
    </form>

    <script>
        window.onload = function(){
            var y = $.urlGet()['y'];
            var m = $.urlGet()['m']

            if(!y || !m){
                return false;
            }

            $('#f_date').val(y+'-'+m);
        }

        function filterDate(){
            var f_date = $('#f_date').val();

            if(!f_date){
                alert('未选择日期!')
                return false;
            }else
                f_date = f_date.split('-');

            var param = $.param({ 
                'y':f_date[0],
                'm':f_date[1]
            }, true);

            window.location.href =  window.location.pathname + '?' + param;
        }
    </script>